
(function($){
	$.fn.validLangEng = function(){};
	$.validLangEng = {
		newLang: function(){
			$.validLangEng.allRules = {
				"required": {
					"regex": "none",
					"alertText": "* 不能为空",
					"alertTextCheckboxMultiple": "* 请选择",
					"alertTextCheckboxe": "* 请选择"
				},
				"length": {
					"regex": "none",
					"alertText": "* 长度在 ",
					"alertText2": " 到 ",
					"alertText3": " 个字符之间"
				},
				"maxCheck": {
					"regex": "none",
					"alertText": "* 最多能选 ",
					"alertText2": " 项"
				},
				"minCheck": {
					"regex": "none",
					"alertText": "* 请至少选择 ",
					"alertText2": " 项"
				},
				"confirm": {
					"regex": "none",
					"alertText": "* 两次输入的值不同"
				},
				"tel": {
					"regex": "/^[0-9\-\(\)\ ]+$/",
					"alertText": "* 非法用的电话号码"
				},
				"email": {
					"regex": "/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
					"alertText": "* 非法电子邮件地址"
				},
				"date": {
					"regex": "/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
					"alertText": "* 非法日期,格式:YYYY-MM-DD"
				},
				"number": {
					"regex": "/^[0-9\ ]+(\.[0-9\ ]+)?$/",
					"alertText": "* 只能输入数字"
				},
				"noSpecChar": {
					"regex": "/^[0-9a-zA-Z]+$/",
					"alertText": "* 不允许有特殊字符"
				},
				"ajaxUser": {
					"file": "validateUser.php",
					"extraData": "name=eric",
					"alertTextOk": "* This user is available",
					"alertTextLoad": "* Loading, please wait",
					"alertText": "* This user is already taken"
				},
				"ajaxName": {
					"file": "validateUser.php",
					"alertText": "* This name is already taken",
					"alertTextOk": "* This name is available",
					"alertTextLoad": "* Loading, please wait"
				},
				"letter": {
					"regex": "/^[a-zA-Z\ \']+$/",
					"alertText": "* 只允许输入字母"
				}
			}
		}
	}
})(jQuery);
$(document).ready(function(){
	$.validLangEng.newLang()
});
